<script type="text/javascript">
    RED.nodes.registerType('markdown-mail',{
        category: 'function',
        color: '#a6bbcf',
        defaults: {
            name: {
                value: ''
            },
            title: {value:""}, 
            content: {value:""}
        },
        inputs:1,
        outputs:1,
        icon: " function.png",
        label: function() {
            return this.name || "pushbear邮件模板";
        },
    });

</script>

<script type="text/x-red" data-template-name="markdown-mail">
    <div class="form-row">
        <label for="node-input-name"><i class="icon-tag"></i>名称</label>
        <input type="text" id="node-input-name" placeholder="pushbear邮件模板">
    </div>
    <div class="form-row">
        <label for="node-input-title"><i class="icon-tag"></i> 标题</label>
        <input type="text" id="node-input-title" maxlength='78' placeholder="(msg.topic)">
    </div>
    <div class="form-row">
        <label for="node-input-content"><i class="icon-tag"></i> 内容</label>
        <textarea type="text" id="node-input-content" placeholder="(msg.payload), 支持markdown格式"> </textarea>
    </div>
    <div class="form-row">
        <label style="width: 100%;text-align: right;padding-right: 34px;box-sizing: border-box;">
            <a href="https://bbs.iobroker.cn/thread-231-1-1.html" target="_blank">手摸手图文教程 (ioBroker中国|智能家居)提供</a>
        </label>
    </div>
    
</script>


<script type="text/x-red" data-help-name="markdown-mail">
    <p>邮件 pushbear模板节点，此节点需要配合邮件发送使用</p>

    <p>msg.payload = '你好,pushbear' 直接填写 {{payload}} 会发送上个节点msg.payload 信息</p>

    <p>和iobroker开发者一起聊天，快来加入吧</p>
    <img src="https://i.loli.net/2018/12/28/5c25b8bf1e78d.jpg"/>
  
</script>

